﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sample.ViewModel
{
    public class EventTriggerViewModel
    {
        public G.MVVM.CallBackCommand Pressed { get; set; }

        public EventTriggerViewModel()
        {
            Pressed = new G.MVVM.CallBackCommand(OnClick);
        }

        private void OnClick(object p)
        {
            Windows.UI.Popups.MessageDialogHelp.Show("通过EventTrigger实现事件的绑定", "提示");
        }
    }
}
